home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #6 / Amiga Plus CD - 1996 - No. 06.iso / pd / netz / dl / configure next >
Text File  |  1992-09-02  |  939b  |  50 lines

  1. #!/bin/sh
  2. #
  3. # Simple configure script for DownLoad v1.00
  4. #
  5. # This program is in the public domain and may be used freely by anyone
  6. # who wants to.
  7. #
  8. # Start this script to create Makefile from Makefile.in
  9. #
  10. # Last update: 13 Feb 1996
  11. #
  12. # Please send bug reports to: Zlatko Calusic <maverick@fly.cc.fer.hr>
  13. #
  14.  
  15. if [ -f `which gcc` ]
  16. then
  17.     CC=gcc
  18.     CFLAGS="-O2 -Wall -Wno-implicit"
  19.     echo "We'll use gcc for compiling."
  20. else
  21.     if [ -f `which cc` ]
  22.     then
  23.         CC=cc
  24.         if [ "`uname -s`" = "HP-UX" ]
  25.         then
  26.             CFLAGS="+O3 -Aa -D_HPUX_SOURCE"
  27.         else
  28.             CFLAGS=-O
  29.         fi
  30.         echo "We'll use cc for compiling."
  31.     else
  32.         echo "Couldn't find compiler in your path ..."
  33.         exit 0
  34.     fi
  35. fi
  36.  
  37. if [ "`uname -s`" = "SunOS" -a "`uname -r | cut -c1`" = "5" ]
  38. then
  39.     LIBS="-lnsl -lsocket"
  40. else
  41.     LIBS=
  42. fi
  43.  
  44. echo "Creating Makefile ..."
  45. sed -e "s/@CC@/$CC/" -e "s/@CFLAGS@/$CFLAGS/" -e "s/@LIBS@/$LIBS/" < Makefile.in > Makefile
  46. sleep 1
  47. echo "You can type 'make' now."
  48.  
  49. exit 0
  50.